// 引入公共css
require("../../assets/css/normalize.css");
require("../../assets/css/reset.css");
require("../../assets/css/basic.css");
require("../../assets/css/property.css");
require("../../assets/fonts/word-img/iconfont.css");
// 引入公共;
let dom = require("../../assets/js/util.js");
let axios = require("../../assets/js/axios");
// 引入自己的
require("./badge1-detail.css");

// 普通js
// 箭头
dom.turnToPage("myBadge", "header .icon-left3");
// 获取参数 id
let id = location.search.split("=").pop();

// 发请求获取徽章信息
axios.get("/api/exercise/badge").then((res) => {
	let data = res.data.data;
	// console.log(data);
	data.forEach((v) => {
		// console.log(v);
		if (v.id === id) {
			console.log(v.detail);
		}
	});
});
